package com.baizhi.service.Impl;

import com.baizhi.dao.AuctionDao;
import com.baizhi.entity.Auction;
import com.baizhi.service.AuctionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AuctionServiceImpl implements AuctionService {

    @Autowired
    private AuctionDao auctionDao;
    private List<Auction> auctionList;
    @Override
    public List<Auction> selectAllAuction() {
        return auctionDao.selectAllAuction();
    }

    @Override
    public void addAuction(Auction auction) {
    auctionDao.addAuction(auction);
    }

    @Override
    public Auction selectOneAuction(int id) {
        return auctionDao.selectOneAuction(id);
    }

    @Override
    public void delete(int id) {
        auctionDao.delete(id);
    }

    @Override
    public Auction selectOne(int id) {
        return auctionDao.selectOneAuction(id);
    }

//    @Override
//    public Auction selectOneAuction(int id) {
//        return auctionDao.selectOneAuction(id);
//    }
//

}
